package com.tbs.easyhomemoneyserver.service;

import com.tbs.easyhomemoneyserver.DO.LoginInfo;
import com.tbs.easyhomemoneyserver.DO.SysUser;
import com.tbs.easyhomemoneyserver.form.UserCreateForm;

public interface IUserService {
    /**
     * 新建用户
     * @param createForm
     * @return
     */
    SysUser newUser(UserCreateForm createForm);

    /**
     * 根据name查用户
     * @param name
     * @return
     */
    SysUser getUserByName(String name);
    /**
     * 手机号查
     * @param phone
     * @return
     */
    SysUser getUserByPhone(String phone);

    /**
     * 主键id查用户
     * @param id
     * @return
     */
    SysUser getUserById(Long id);

    /**
     * 根据登录信息id查询登录信息
     * @param id
     * @return
     */

    LoginInfo getLoginInfoByID(Long id);

}
